<?php

namespace Shared\LocalSyntaxSpecific\LRCModifier;

/**
 * 
 * @author Jordan Minchev <j.minchev@object.bg>
 * @copyright (c) 2014, ASPECT.BG Ltd.
 */
class EnglishContentModifier extends ContentModifier {

    protected $leftQuoteCharacter = '“';
    protected $rightQuoteCharacter = '”';

    public function fixDate($string) {
        return preg_replace('/([0-9]{4})\s+(г\.)/iu', '$1&nbsp;$2', $string);
    }

    public function clearDate($string) {
        return preg_replace('/([0-9]{4})&nbsp;(г\.)/iu', '$1 $2', $string);
    }

}
